#!/bin/sh
### BEGIN INIT INFO
# Provides:          autostart.sh
# Required-Start:    $local_fs $remote_fs
# Required-Stop:     
# Default-Start:     2 3 4 5
# Default-Stop:      
# Description:       自启动脚本
### END INIT INFO

### 挂载共享文件夹
/usr/bin/vmhgfs-fuse .host:/ /mnt/hgfs -o subtype=vmhgfs-fuse,allow_other &&

### 启动natapp
nohup /usr/local/lib/natapp/natapp -authtoken=c8c8fe47aa45ce50 -log=stdout -loglevel=INFO > /mnt/hgfs/share/natapp/run.log 2>&1 &&


echo "Start Success!!!"